<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="utf-8">
	<title>首页</title>
</head>
<body>
	<header>
		<h1>${(site.name)!}</h1>
	</header>
	<nav>
		<a href="${site.useStatic?then(site.sitePath,base)}">首页</a>
<@_categoryList>
	<#list page.list as a>
		<a href="${a.url!}" target="_blank">${a.name}</a>
	</#list>
</@_categoryList>
	</nav>
	<main>
		<h2>最新内容</h2>
<@_contentList onlyUrl=false count=10>
	<#list page.list as a>
		<article>
		    <h3><a href="${a.url!}" target="_blank">${a.title}</a></h3>
		    <p>
		    	<#if a.cover?has_content><img src="${site.sitePath+a.cover}" alt="${a.title}"/></#if>
		    	${a.description!}
		    </p>
		</article>
	</#list>
</@_contentList>
		<aside>
			<h3>热门内容</h3>
			<ul>
<@_contentList orderField='clicks' count=10>
	<#list page.list as a>
				<li><a href="<#if a.onlyUrl>${site.dynamicPath}content/redirect.do?id=${a.id}<#else>${a.url!}</#if>" target="_blank">${a.title}</a><span>${a.clicks}</span></li>
	</#list>
</@_contentList>
			</ul>
		</aside>
	</main>
	<footer>
		Copyright &copy; ${.now?string('yyyy')}
	</footer>
</body>
</html>